package cn.tuling.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class R {
    private Integer code;
    private String msg;

    public static R error(Integer code, String msg) {
        return new R(code, msg);
    }
}
